home *** CD-ROM | disk | FTP | other *** search
- Path: erich.triumf.ca!bennett
- From: bennett@erich.triumf.ca (P.Bennett)
- Newsgroups: comp.lang.c
- Subject: Re: BEGINNER --> problem with ATEXIT !!!!
- Date: 5 Feb 1996 08:00 PST
- Organization: TRIUMF: Tri-University Meson Facility
- Distribution: world
- Message-ID: <5FEB199608000849@erich.triumf.ca>
- References: <its.2.000DC6F8@euronet.nl>
- NNTP-Posting-Host: erich.triumf.ca
- Keywords: ATEXIT
- News-Software: VAX/VMS VNEWS 1.50
-
- In article <its.2.000DC6F8@euronet.nl>, its@euronet.nl (it's_b.v.) writes...
- >Can somebody help me with the following :
- >
- >I use the atexit() function to start a DOS-batchfile when my program ends.
- >The memory which this program uses is freed AFTER the batch-file has
- >completed.
- >
- >the program-code looks like this :
- >
- .. code snipped...
- >QUESTION :
- >Is it possible to free the memory which is used by my program BEFORE the
- >batch-file is executed !
-
-
- No. The batch file is executed _while_ your program exits, not _after_ it
- exits. (That is, somewhere between what you consider the "end" of your
- program, and the time that the vendor-supplied startup/cleanup code terminates,
- and returns control to the operating system.)
-
- I think the only way do do what you want is to run your program, and whatever
- is in the other batch file, from one batch file.
-
-
- Peter Bennett VE7CEI | Vessels shall be deemed to be in sight
- Internet: bennett@triumf.ca | of one another only when one can be
- Packet: ve7cei@ve7kit.#vanc.bc.ca | observed visually from the other
- TRIUMF, Vancouver, B.C., Canada | ColRegs 3(k)
- GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
-
-